package zj.sample.scala.scala_demo

import scala.App
/**
 * @author zhangjing
 */
object DataTypeSamples extends scala.App {

  var a: Int = 1;
  var b: Int = 2;
  var s: java.lang.String = "Hello World!!!";
  println("max("+a+","+b+")="+new DataTypeSamples().max(a, b));//TODO:伴生类有啥用???
  System.out.println(s + a);  

}

class DataTypeSamples  extends scala.App {
  var x : Int =0;
  def max(n: Int, m: Int): Int = {
    if (n > m) return n;
    return m;
  }

}